package com.cy.sys.log.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
/**
 * 	业务呈现数据控制层
 * @author Administrator
 *
 */
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cy.sys.log.page.vo.JSONResult;
import com.cy.sys.log.service.logService;
@Controller
@RequestMapping("/log/")
public class sysLogcontrller {
	@Autowired
	private logService logser;
	
	@RequestMapping("doFindPageObjects")
	@ResponseBody
	public JSONResult difindvo(String username,Integer pageCurrent) {
	//	try {	对异常处理的封装使用全局异常处理
		System.out.println(pageCurrent);
		return new JSONResult(logser.findpageObject(username, pageCurrent));	
//	}catch (Throwable e) {
//		return new JSONResult(e);
//	}
		}
}
